import E from 'wangeditor'
const colors = [
  '#000000', '#262626', '#595959', '#8c8c8c', '#bfbfbf', '#d9d9d9', '#e9e9e9', '#f5f5f5', '#fafafa', '#ffffff',
  '#FF0000', '#fa541c', '#fa8c16', '#fadb14', '#52c41a', '#13c2c2', '#1890ff', '#2f54eb', '#722ed1', '#eb2f96',
  '#ffe8e6', '#ffece0', '#ffefd1', '#fcfcca', '#e4f7d2', '#d3f5f0', '#d4eefc', '#dee8fc', '#efe1fa', '#fae1eb',
  '#ffa39e', '#ffbb96', '#ffd591', '#fffb8f', '#b7eb8f', '#87e8de', '#91d5ff', '#adc6ff', '#d3adf7', '#ffadd2',
  '#ff4d4f', '#ff7a45', '#ffa940', '#ffec3d', '#73d13d', '#36cfc9', '#40a9ff', '#597ef7', '#9254de', '#f759ab',
  '#cf1322', '#d4380d', '#d46b08', '#d4b106', '#389e0d', '#08979c', '#096dd9', '#1d39c4', '#531dab', '#c41d7f',
  '#820014', '#871400', '#873800', '#614700', '#135200', '#00474f', '#003a8c', '#061178', '#22075e', '#780650'
]

class colorList {
  constructor() {
    this.itemList = []
    for (const color of colors) {
      this.itemList.push({
        $elem: E.$(`<i class="color-picker" style="background-color:${color};"></i>`),
        value: color
      })
    }
    this.itemList.push({
      $elem: E.$(`<div class="lake-more-color">
        <span class="color-icon"></span>更多颜色
        <span class="icon-arrow-right"></span>
      </div>`),
      value: 'more'
    })
  }
  getItemList() {
    return this.itemList
  }
}
export default colorList
